import ProxyInterface from '../proxy-interface';
import {FolderInfoModel} from '@pkpm/pkpm-types';

class FolderProxy implements ProxyInterface<FolderInfoModel> {
    private folder = new FolderInfoModel();

    constructor(responseData) {
        let data = responseData.data || responseData;
        Object.assign<FolderInfoModel, any>(this.folder, data);
    }

    getModel(): FolderInfoModel {
        return this.folder;
    }
}

export {FolderProxy};
